<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head th:replace="_fragments :: head(~{::title})">
    <meta charset="UTF-8">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.css">
    <link rel="stylesheet" href="../static/css/lk.css"/>
    <title>搜索结果</title>
</head>
<body>
<!--导航-->
<nav th:replace="_fragments :: menu(1)" class="ui inverted attached segment lk-padded-tb-mini">
    <div class="ui container">
<!--        stackable可堆叠的-->
        <div class="ui inverted stackable secondary menu">
            <h2 class="ui teal header item">Blog</h2>
            <a href="#" class="item lk-item lk-mobile-hide"><i class=" home icon"></i> 首页</a>
            <a href="#" class="item lk-item lk-mobile-hide"><i class=" idea icon"></i> 分类</a>
            <a href="#" class="active item lk-item lk-mobile-hide"><i class=" tag icon"></i>标签</a>
            <a href="#" class="item lk-item lk-mobile-hide"><i class=" clone icon"></i>归档</a>
            <a href="#" class="item lk-item lk-mobile-hide"><i class=" info icon"></i>关于我</a>
            <div class="right item">
                <div class="ui icon transparent input">
                    <input type="text" placeholder="搜索...">
                    <i class="inverted search link icon"></i>
                </div>
            </div>
        </div>
    </div>
<!--    导航小图标-->
    <a href="#" class="ui black icon button lk-right-top lk-mobile-show menu toggle">
        <i class="sidebar icon"></i>
    </a>
</nav>
<div class="lk-container">
    <br>
    <br>
    <br>
    <br>
    <div class="ui container">
        <div class="ui stackable grid">
            <div class="fourteen middle aligned wide column">
                <!--头部 attached将表格缝合 top表示缝合顶顶-->
                <div class="ui top attached segment">
                    <div class="ui two column grid">
                        <div class="ui column">
                            <div class="ui teal header">搜索结果</div>
                        </div>
                        <div class="ui right aligned column">
                            <div class="ui teal header">共
                                <h3 class="ui orange header lk-inline-block" th:text="${page.totalElements}">14</h3>
                                篇</div>
                        </div>
                    </div>
                </div>
                <!--内容attached-->
                <div class="ui  attached segment lk-container">
                    <div class="ui padded vertical segment lk-padded-tb-small" th:each="blog : ${page.content}">
                        <div class="ui mobile reversed stackable grid">
                            <div class="eleven wide column">
                                <h3 class="ui header"><a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" class="lk-black" th:text="${blog.title}">你真的懂什么叫做自由吗？</a></h3>
                                <p class="lk-text-thin" th:text="|${blog.description}......|">9月17日下午，国家主席习近平在北京以视频方式出席上海合作组织成员国元首理事会第二十一次会议并发表重要讲话。站在新的历史起点上，世界如何“和”，习近平提出五条建议。</p>
                                <div class="ui eleven wide column grid ">
                                    <!--                                   horizontal 横起来-->
                                    <div class="ui horizontal link list">
                                        <div class="item">
                                            <img src="https://picsum.photos/id/1004/800/450?"alt="" class="ui avatar image" th:src="@{${blog.user.avatar}}">
                                            <div class="content">
                                                <a href="" class="header" th:text="${blog.user.nickname}">张三丰</a>
                                            </div>
                                        </div>
                                        <div class="item">
                                            <i class="calendar icon"></i><span th:text="${#dates.format(blog.updateTime,'yyyy-MM-dd')}">2007-10-12</span>
                                        </div>
                                        <div class="item">
                                            <i class="eye icon" th:text="${blog.views}">3000</i>
                                        </div>
                                    </div>
                                    <div class="ui right aligned five wide column ">
                                        <a href="#" class="ui right basic teal label lk-padded-mini" th:text="${blog.type.name}">认知升级</a>
                                    </div>
                                </div>
                            </div>
                            <div class="five wide column">
                                <a href="#" target="_blank" th:href="@{/blog/{id}(id=${blog.id})}">
                                    <img src="https://picsum.photos/id/1004/800/450" alt="图片" class="ui rounded image" th:src="@{${blog.firstPicture}}" >
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
                <!--内容底部分页 bottom attached 使用right进行定位-->
                <div class="ui bottom attached segment" th:if="${page.totalPages}>1">
                    <div class="ui middle two column grid">
                        <div class="ui column">
                            <a href="#" th:href="@{/(page=${page.number}-1)}"  th:unless="${page.first}" class="ui teal basic mini button">上一页</a>
                        </div>
                        <div class="ui right aligned column">
                            <div class="ui column">
                                <a href="#"  th:href="@{/(page=${page.number}+1)}"  th:unless="${page.last}" class="ui teal basic mini button">下一页</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!--底部-->
<footer th:replace="_fragments :: footer" class="ui stackable inverted vertical segment " >
<div class="ui stackable center aligned container lk-padded-tb">
    <div class="ui  stackable inverted divided grid">
        <div class="three wide column">
            <img src="../static/images/这是一个网上的二维码.jpg" alt="二维码图片" style="width: 10em;height: 10em">
        </div>
        <div class="three wide column">
            <h4 class="ui inverted header">最新博客</h4>
            <div class="ui inverted link list">
                <a href="#" class="item">用户故事</a>
                <a href="#" class="item">用户故事</a>
                <a href="#" class="item">用户故事</a>
            </div>
        </div>
        <div class="three wide column">
            <h4 class="ui inverted header">最新博客</h4>
            <div class="ui inverted link list">
                <a href="#" class="item">用户故事</a>
                <a href="#" class="item">用户故事</a>
                <a href="#" class="item">用户故事</a>
            </div>
        </div>
        <div class="seven wide column">
            <h4 class="ui inverted header">最新博客</h4>
            <p>这是我的个人博客</p>
        </div>
    </div>
    <div class="ui inverted section divider">    </div>
    <p class="lk-text-thin lk-text-space lk-opacity-tiny" style="align-content: center"> Copyright © 2020 - 2021 LKBS Designed by LKBS</p>
</div>
</footer>
<!--/*/<th:block th:replace="_fragments :: script">/*/-->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.js"></script>
<!--/*/</th:block>/*/-->
<script>
    $(".menu.toggle").click(function (){
        $(".lk-item").toggleClass('lk-mobile-show');
    })
    //二维码弹窗
    $('#payButton').popup({
        popup:$('.payQR.popup'),
        on:'click',
        position:'bottom center'
    })
</script>
</body>

</html>